package com.mateng.treasurechest.view.recipe

import com.bumptech.glide.request.RequestOptions
import com.mateng.treasurechest.R

/**
 * Created by mateng on 2018/1/27.
 * 菜谱模块的配置文件
 */

//Glide配置
val glideOptions: RequestOptions = RequestOptions().centerCrop().placeholder(R.mipmap.recipe_grid_placeholder).error(R.mipmap.recipe_grid_error)

const val RECIPE_LIST_PAGE_SIZE = 20

//菜谱接口在MobAPI需要的KEY
const val RECIPE_KEY = "1c0f091dc9b93"

object EXTRAS {
    //菜谱详情的id
    const val KEY_ID = "id"
    const val KEY_NAME = "name"
}

object SP {

    //配置信息SP文件名
    const val SP_NAME_RECIPE_CONFIG = "recipe_config.sp"
    //缓存信息SP文件名
    const val SP_NAME_RECIPE_CACHE = "recipe_cache.sp"
    //选择的菜品类型
    const val SP_KEY_RECIPE_TYPE_POSITION = "SP_KEY_RECIPE_TYPE_POSITION"


}